/*
 * @Author: daidai
 * @Date: 2021-12-09 10:47:56
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-04-27 16:32:31
 * @FilePath: \web-pc\src\api\index.js
 */

import {
  currentList,
  currentPage,
  currentSave,
  currentUpdate,
  currentDelete,
  currentSelect,
  currentSelectList,
  currentPOST,
  currentGET,
  currentApi,
} from "./modules";
import { GETNOBASE, GET } from "./api";
import * as API from "./api";

// 所有新生
// export const allStudents = () => {
//   return API.GET("service/bksxsxx_2025");
// };
export const allStudentsJson = () => {
  return GETNOBASE("./all-students.json");
};
// 已报到学生
export const httpReportedStudents = () => {
  return API.POST("/yingxin-api/yingxin/api/getEnrolledRate");
};
// 认证账号与企微账号激活状态
export const httpAccountStatus = () => {
  return API.POST("/yingxin-api/yingxin/api/getActiveRate");
};

// 告警信息
export const httpAlarmInfo = () => {
  return API.POST("/yingxin-api/yingxin/api/getWarningData");
};

export { GETNOBASE, GET };

export {
  currentApi,
  currentList,
  currentPage,
  currentSave,
  currentUpdate,
  currentDelete,
  currentSelect,
  currentSelectList,
  currentPOST,
  currentGET,
};
